﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace TMS
{
    public partial class NewDispatchNoteControl : UserControl
    {
        public NewDispatchNoteControl()
        {
            InitializeComponent();
            DateTime today = DateTime.Today;
            lblWriteDate.Text = today.ToString("d");
            lblWriteNameSurname.Text = Program.GetActiveUser.GetName().ToString() + " " + Program.GetActiveUser.GetSurname().ToString();
        }

        private void btnProducts_Click(object sender, EventArgs e)
        {
            this.Hide();
        }

        private void btnReceiveNote_Click(object sender, EventArgs e)
        {
            this.Hide();
            Program.GetWarehouseMainForm.ShowControl(WarehouseControlsEnum.RECEIVE_NOTE_CONTROL);
        }
    }
}
